//
//  BlurImageView.m
//  Share_iCarousel
//
//  Created by long on 15/12/16.
//  Copyright (c) 2015年 WLong. All rights reserved.
//

#import "BlurImageView.h"

@implementation BlurImageView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        UIBlurEffect *blurEff = [UIBlurEffect effectWithStyle:(UIBlurEffectStyleDark)];
        UIVisualEffectView *visualEffV = [[UIVisualEffectView alloc]initWithEffect:blurEff];
        visualEffV.frame = frame;
        visualEffV.alpha = 0.7;
        [self addSubview:visualEffV];
       
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
